// pages/kind/kind.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    activeKey: 0,
    barItems: ["有品推荐", "日常元素","小米自营", "手机数码", "小米电视", "电脑办公", "大家电", "小家电", "美食酒饮", "出行车品", "出行车品", "运动户外", "医疗健康", "家具家装", "家纺厨具", "日用百货", "服装配饰", "鞋靴箱包", "手表首饰", "美妆个护", "母婴亲子", "宠物生活"],
    detail: {
      name: "有品推荐",
      banner: "https://img.youpin.mi-img.com/ferriswheel/383866b1_44c2_4c64_ba1e_ffb361068d28.jpeg?w=786&h=228",
      children: [{
        name: "精选分类",
        children: [{
            name: "平板",
            img: "https://img.youpin.mi-img.com/youpin_gms/2aa9fa47_81c8_4c82_b60c_0d6b11052ccb.png?w=800&h=800"
          }, {
            name: "平板电脑",
            img: "https://img.youpin.mi-img.com/shopmain/fafaf09cedaf203ca25923d19329f49c.png?w=800&h=800"
          }, {
            name: "笔记本",
            img: "https://img.youpin.mi-img.com/youpin_gms/92661dab_9170_43ca_be0d_a3af002de323.png?w=800&h=800"
          }]
      }, {
        name: "精选专区",
        children: [{
            name: "净化器",
            img: "https://img.youpin.mi-img.com/youpin_gms/1f8a123c_cfc5_4142_b990_0d436b75a4e3.png?w=800&h=800"
          }, {
            name: "居家保暖",
            img: "https://img.youpin.mi-img.com/shop-fe/93577486_0ef3_4e20_bfcf_fe7a2b376a66.png"
          }]
      }]
    }
  },

  onChange(e) {
    this.setData({
      activeKey: e.detail
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady() {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow() {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide() {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload() {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh() {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom() {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage() {

  }
})